<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>用户主页 | 烦恼留声机</title>
	
<h2>User Profile</h2>
<?php
	echo "UID:";
        echo $info['uid'];
		echo "<br />";
	echo "Account Name:";
        echo $info['name'];
		echo "<br />";
	echo "Email:";
        echo $info['email'];
		echo "<br />";
	echo "Nickname:";
        echo $info['nickname'];
		echo "<br />";
	echo "USTC-GID:";
        echo $info['ustc_gid'];
		echo "<br />";
	echo "Gender:";
        echo $info['gender'];
		echo "<br />";
	echo "User Type:";
        echo $info['utype'];
		echo "<br />";
	
?>
<hr />
<h2>My Vexations</h2>
<?php
	echo "You've got ".count($vexq->result_array())." vexations. <br />";
	foreach ($vexq->result() as $row) {
		echo "Vexation ID:";
		echo $row->vid;
		echo "<br />";
	
		echo "Vexation owner ID:";
		echo $row->owner;
		echo "<br />";	

		echo "Vexation belong ID:";
		echo $row->belong;
		echo "<br />";	

		echo "Vexation Summary:";
		echo $row->summary;
		echo "<br />";	

		echo "Vexation Detail:";
		echo $row->detail;
		echo "<br />";

		echo "Vexation Solution:";
		echo $row->solution;
		echo "<br />";
		echo '<a href="../../vexation/show?vid='.$row->vid.'">See this Vexation</a>';

		echo "<br /><br />";
	}
?>
	
<a href="../../vexation/attach">Write Vexations</a>

</body>
</html>